const express = require("express");
const axios = require("axios");
const app = express();
app.use(function(req,res,next){
    res.set("Access-Control-Allow-Origin", "*");
    next();
})
app.get("/maoyan",(req,res)=>{
    axios.get("https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json?ct=大连&ci=65&channelId=4").then(value=>{
        res.json(value.data);
    })
})

app.listen(80,()=>{
    console.log("success")
})